"""
文件名: conftest.py
作用: 存放所有fixture方法
"""
import pytest
from Interface.MemberInterface import MemberInterface
from Interface.CartInterface import CartInterface
from Interface.OrderInterface import OrderInterface


@pytest.fixture()
def member():
    """
    MemberInterface实例化对象返回
    :return:
    """
    member = MemberInterface()
    yield member


@pytest.fixture()
def cart1():
    """
    CartInterface实例化对象返回
    :return:
    """
    cart = CartInterface()
    yield cart


@pytest.fixture()
def order():
    """
    OrderInterface实例化对象返回
    :return:
    """
    order = OrderInterface()
    yield order
